<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html; charset=iso-8859-1" language="java"  errorPage="" %>
<jsp:directive.page import="cbm.commons.SessionContainer"/>
<jsp:directive.page import="cbm.commons.ConstantsWeb"/>
<jsp:directive.page import="cbm.commons.ResultadoOperacionBean"/>
<%
	SessionContainer sc = (SessionContainer)session.getAttribute(ConstantsWeb.SESSION_CONTAINER);
	ResultadoOperacionBean resultadoOPeracion =   (ResultadoOperacionBean)sc.getTemporalElement(ConstantsWeb.RESULTADO_OPERACION);
%>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/estilos.css"/>
<table align="left" width="100%"  border="1" cellpadding="0" cellspacing="0" >
	<tr>
		<td class="tceldatabla1" width="7%">C&oacute;digo</td>
		<td class="tceldatabla1" width="15%">Par&aacute;metro</td>
		<td class="tceldatabla1" width="10%">Tipo Par&aacute;m.</td>
		<td class="tceldatabla1" width="15%">Descripci&oacute;n Tipo</td>
		<td class="tceldatabla1" width="6%">Estado</td>
		<td class="tceldatabla1" width="10%">V. Num&eacute;rico</td>
		<td class="tceldatabla1" width="12%">V. Alfanum&eacute;rico</td>
		<td class="tceldatabla1" width="3%">&nbsp;</td>
		<td class="tceldatabla1" width="3%">&nbsp;</td>
	</tr>
	<c:if test="${container.temporal.grilla == null}" >
		<tr class="cuadrocontentGrilla">
			<td colspan="8" align="left" valign="top">No hay registros.</td>
		</tr>
	</c:if>	
	<c:if test="${container.temporal.grilla != null}" >
		<c:forEach items="${container.temporal.grilla}" var="item" varStatus="status">
			<tr class="tcelda3">
				<td ><c:out value="${item.codigoparametro}"/></td>
				<td ><c:out value="${item.descripcion}"/></td>
				<td ><c:out value="${item.tipoparametro.codigotipoparametro}"/>&nbsp;</td>
				<td ><c:out value="${item.tipoparametro.descripcionparametro}"/>&nbsp;</td>
				<td ><c:out value="${item.flagactivo}"/></td>
				<td ><c:out value="${item.valornumerico}"/>&nbsp;</td>
				<td ><c:out value="${item.valoralfanumerico}"/>&nbsp;</td>
				<td ><a href="javascript:f_modificar('${item.codigoparametro}');" class="button_link"><span class="modify">Modificar</span></a></td>
				<td ><a href="javascript:f_eliminar('${item.codigoparametro}');" class="button_link"><span class="delete">Eliminar</span></a></td>
			</tr>
	   </c:forEach>
   </c:if>
</table>
<%if(sc != null)sc.removeTemporales();%>
